package com.ruoyi.base.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 盒号使用记录业务对象 base_ba_heh_use_log
 *
 * @author zyb
 * @date 2024-06-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BaHehUseLogBo extends BaseEntity {

    /**
     * 使用记录id
     */
    @NotNull(message = "使用记录id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 盒号id
     */
    @NotNull(message = "盒号id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long hehId;

    /**
     * 使用日期
     */
    @NotNull(message = "使用日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date useDate;

    /**
     * 试验任务id
     */
    @NotNull(message = "试验任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long reportId;

    /**
     * 试验室id
     */
    private Long deptId;

    /**
     * excelId
     */
    private Long excelId;


}
